const BehaviorAll = require("../../behaviors/behavior_all.js");
const ServiceClasses = require("../../service/service_classes.js");

Component({
  /**
   * behaviors
   */
  behaviors: [BehaviorAll],

  /**
   * 页面的初始数据
   */
  data: {
    classes: null
  },

  methods: {
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
      const _this = this;
      ServiceClasses.get(function (data) {
        _this.setData({
          classes: data
        })
      })
    }
  }

})